package com.spi.soconversion.base.definition;

import com.spi.soconversion.util.SOCConstants;
import com.spi.soconversion.util.SOCUtility;
import com.spi.soconversion.util.XMLAttributeConstants;
import com.spi.soconversion.util.XMLTagConstants;


public class SOCOrderLineSchedule {

	private String ExpectedDeliveryDate;
	private String ExpectedShipmentDate;
	private String ProcureFromNode;
	private String PromisedApptEndDate;
	private String PromisedApptStartDate;
	private String ShipByDate;
	private String ShipNode;
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		
		sb.append(XMLTagConstants.START_TAG_SCHEDULE);
		sb.append(SOCConstants.BLANK_STRING);
		
		sb.append(SOCUtility.getAttribute(XMLAttributeConstants.EXPECTED_DELIVERY_DATE, getExpectedDeliveryDate()));		
		sb.append(SOCConstants.BLANK_STRING);
		
		sb.append(SOCUtility.getAttribute(XMLAttributeConstants.EXPECTED_SHIPMENT_DATE, getExpectedShipmentDate()));		
		sb.append(SOCConstants.BLANK_STRING);
		
		sb.append(SOCUtility.getAttribute(XMLAttributeConstants.PROCURE_FROM_NODE, getProcureFromNode()));		
		sb.append(SOCConstants.BLANK_STRING);
		
		sb.append(SOCUtility.getAttribute(XMLAttributeConstants.PROMISE_APP_END_DATE, getPromisedApptEndDate()));
		sb.append(SOCConstants.BLANK_STRING);		
		
		sb.append(SOCUtility.getAttribute(XMLAttributeConstants.PROMISE_APP_START_DATE, getPromisedApptStartDate()));
		sb.append(SOCConstants.BLANK_STRING);	
		
		sb.append(SOCUtility.getAttribute(XMLAttributeConstants.SHIP_BY_DATE, getShipByDate()));
		sb.append(SOCConstants.BLANK_STRING);
		
		sb.append(SOCUtility.getAttribute(XMLAttributeConstants.SHIP_NODE, getShipNode()));
		sb.append(SOCConstants.BLANK_STRING);
		
		sb.append(SOCConstants.CLOSING_XML_TAG);
		sb.append(XMLTagConstants.END_TAG_SCHEDULE);

		sb.append(SOCConstants.NEW_LINE);
		sb.append(XMLTagConstants.END_TAG_ORDER_STATUS);

		sb.append(SOCConstants.NEW_LINE);
		sb.append(XMLTagConstants.END_TAG_ORDER_STATUSES);
		

		return sb.toString();
	}
	
	public String getExpectedDeliveryDate() {
		return SOCUtility.checkNull(ExpectedDeliveryDate);
	}
	public void setExpectedDeliveryDate(String expectedDeliveryDate) {
		ExpectedDeliveryDate = expectedDeliveryDate;
	}
	public String getExpectedShipmentDate() {
		return SOCUtility.checkNull(ExpectedShipmentDate);
	}
	public void setExpectedShipmentDate(String expectedShipmentDate) {
		ExpectedShipmentDate = expectedShipmentDate;
	}
	public String getProcureFromNode() {
		return SOCUtility.checkNull(ProcureFromNode);
	}
	public void setProcureFromNode(String procureFromNode) {
		ProcureFromNode = procureFromNode;
	}
	public String getPromisedApptEndDate() {
		return SOCUtility.checkNull(PromisedApptEndDate);
	}
	public void setPromisedApptEndDate(String promisedApptEndDate) {
		PromisedApptEndDate = promisedApptEndDate;
	}
	public String getPromisedApptStartDate() {
		return SOCUtility.checkNull(PromisedApptStartDate);
	}
	public void setPromisedApptStartDate(String promisedApptStartDate) {
		PromisedApptStartDate = promisedApptStartDate;
	}
	
	public String getShipByDate() {
		return SOCUtility.checkNull(ShipByDate);
	}
	public void setShipByDate(String shipByDate) {
		ShipByDate = SOCUtility.checkNull(shipByDate);
	}
	public String getShipNode() {
		return SOCUtility.checkNull(ShipNode);
	}
	public void setShipNode(String shipNode) {
		ShipNode = shipNode;
	}
	
}
